<!DOCTYPE html>
<html lang="hxy">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <th:block th:include="include :: header('出场信息')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
</head>

<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="role-form">
                <div class="select-list">
                    <ul>
                        <li>
                            序号：<input type="text" name="id"/>
                        </li>
                        <li>
                            项目名称：<input type="text" name="proName"/>
                        </li>
                        <li>
                            机械编号：<input type="text" name="jxId"/>
                        </li>
                        <li>
                            劳务公司：<input type="text" name="lwgs"/>
                        </li>
                        <li>
                            机械类型名称：<input type="text" name="jxtype"/>
                        </li>
                        <li>
                            机械平均油耗L/H：<input type="text" name="yh"/>
                        </li>
                        <li>
                            出场时间：<input type="text" name="goTime"/>
                        </li>
                        <li>
                            结束码表数：<input type="text" name="overMb"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:role:add">
                <i class="fa fa-plus"></i> 新增
            </a>
            <a class="btn btn-primary single disabled" onclick="$.operate.edit()"
               shiro:hasPermission="system:role:edit">
                <i class="fa fa-edit"></i> 修改
            </a>
            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">
                <i class="fa fa-remove"></i> 删除
            </a>


        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">

    var prefix = ctx + "go";

    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit",<!--/{id}-->
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "项目",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: '序号'
                },
                {
                    field: 'proName',
                    title: '项目名称',
                }
                ,
                {
                    field: 'jxId',
                    title: '机械编号',
                },
                {
                    field: 'lwgs',
                    title: '劳务公司',
                },
                {
                    field: 'jxtype',
                    title: '机械类型名称',
                },
                {
                    field: 'yh',
                    title: '机械平均油耗L/H',
                },
                {
                    field: 'jxxh',
                    title: '机械型号',
                },
                {
                    field: 'goTime',
                    title: '出场时间',
                },
                {
                    field: 'overMb',
                    title: '结束码表数',
                }
                ]
        };
        $.table.init(options);

    });



</script>
</body>

</html>